package com.pig4cloud.pig.propertyroom.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pig4cloud.pig.propertyroom.dto.PropertyRoomDto;
import com.pig4cloud.pig.propertyroom.mapper.RoomVoMapper;
import com.pig4cloud.pig.propertyroom.service.RoomVoService;
import com.pig4cloud.pig.propertyroom.vo.PropertyRoomVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoomVoServiceImpl extends ServiceImpl<RoomVoMapper, PropertyRoomVo> implements RoomVoService {
	@Autowired
	private RoomVoMapper roomVoMapper;

	@Override
	public Page<PropertyRoomVo> wrapperPage(Page page, PropertyRoomDto propertyRoomDto) {
		return roomVoMapper.wrapperPage(page, propertyRoomDto);
	}

	@Override
	public PropertyRoomVo getByRoomId(Long roomId) {
		return roomVoMapper.getByRoomId(roomId);
	}
}
